import os

import pytest
from test_miaosha import set_up
if __name__ == '__main__':
    set_up()
    pytest.main(['-s','test_miaosha.py'])
if __name__ == '__main__':
    pytest.main(["test_miaosha.py","-s","--alluredir=baogao","--clean-alluredir"])
    #生成报告的命令 os.system(命令昂)
    os.system("allure generate report_dada -o .\htmlreport --clean")